<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>乘法表</title>
	</head>
	<body>
		<script type="text/javascript">
            document.write("<table border='1px'>")
            for(var l=1;l<10;l++){
            	document.write("<tr>")
            	for(var m=1; m<=l;m++){
            		document.write("<td>"+l+"*"+m+"="+(l*m)+"</td>")
            	}
            	for(var x=l;x<9;x++ ){
            		document.write("<td>"+"</td>")
            	}
            	document.write("</tr>")
            }
             document.write("</table>")
             
             
             
            document.write("<table border='1px'>")
            for(var x=9;x>0;x--){
            	document.write("<tr>")
            	for(var y=9; y>=x;y--){
            		document.write("<td>"+x+"*"+y+"="+(x*y)+"</td>")
            	}
            	for(var z=x;z>1;z--){
            		document.write("<td>"+"</td>")
            	}
            	document.write("<tr/>")
            }
            document.write("<table>") 
		</script>
	</body>
</html>
